s = input().split(" ")
today = int(s[0])
future = int(s[1])
future = (today + future) % 7
if future == 0:
    print("星期天")
elif future == 1:
    print("星期一")
elif future == 2:
    print("星期二")
elif future == 3:
    print("星期三")
elif future == 4:
    print("星期四")
elif future == 5:
    print("星期五")
else:
    print("星期六")